﻿#include <iostream>

using namespace std;

void sum_mul(int a, int b, int& sum, int& mul) {
	sum = a + b;
	mul = a * b;
}

int main() {
	int a = 1, b = 2;
	int he, ji;

	sum_mul(a, b, he, ji);

	cout << "和为：" << he << endl;
	cout << "积为：" << ji << endl;

	cin.get();
}